package Java.com;

import java.io.*;

public class CopyFile2 {
	public static void main(String[] args) throws IOException {
		FileReader in = null;
		FileWriter out = null;
		try {
			in = new FileReader(
					"E:\\eclipse-jee-2019-03-R-win32-x86_64root\\eclipse-jee-2019-03-R-win32-x86_64\\eclipse\\workspace\\com\\input.txt");
			out = new FileWriter(
					"E:\\\\eclipse-jee-2019-03-R-win32-x86_64root\\\\eclipse-jee-2019-03-R-win32-x86_64\\\\eclipse\\\\workspace\\\\com\\\\output.txt");

			int c;
			while ((c = in.read()) != -1) {
				out.write(c);
			}
		} finally {
			if (in != null) {
				in.close();
			}
			if (out != null) {
				out.close();
			}
		}
	}
}
